fixed implicit conversion of integer literals to float

This commit is contained in:
Ilya Puchka
2017-12-29 17:26:38 +01:00
parent a4b75f3c89
commit 79a16854e7
4 changed files with 19 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ func testVariable() {
$0.it("can resolve an integer literal") {
let variable = Variable("5")
let result = try variable.resolve(context) as? Number
let result = try variable.resolve(context) as? Int
try expect(result) == 5
}