Prevent StatementArguments.Default from being used as actual arguments

This commit is contained in:
Gwendal Roué committed 2015-11-14 13:45:41 +01:00
1 parent 1e3d9f16df
commit 02f852cb89
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -21,6 +21,9 @@ public class Statement {
reset() // necessary before applying new arguments
clearArguments()
if let arguments = arguments {
guard !arguments.isDefault else {
fatalError("Invalid StatementArguments.Default arguments.")
}
arguments.bindInStatement(self)
}
}
-1
View File
@@ -115,7 +115,6 @@ public struct StatementArguments {
var isDefault: Bool { return true }
func bindInStatement(statement: Statement) {
fatalError("StatementArguments.DefaultImpl can not be bound.")
}
var description: String {