Introduce explicit "var x T" syntax.

This makes type checking easier and more explicit.
This commit is contained in:
Nigel Tao committed 2017-05-07 09:00:36 +10:00
1 parent 4615d0d670
commit 56de3228e1
6 files changed
+95 -28

No files matched your search

+2 -2
View File
@@ -17,8 +17,8 @@ func TestCheck(t *testing.T) {
const filename = "foo.puffs"
const src = `
func bar()() {
x = 1 as u8
y = 2 as i32
var x u8
var y i32 = 2
}
`