mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Introduce explicit "var x T" syntax.
This makes type checking easier and more explicit.
This commit is contained in:
1 parent
4615d0d670
commit
56de3228e1
6 files changed
+95
-28
No files matched your search
@@ -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
|
||||
}
|
||||
`
|
||||
|
||||
|
||||
Reference in new issue
Block a user