Fix compile errors when compiling for msvc
This commit is contained in:
18
lambdas.kl
18
lambdas.kl
@@ -1,25 +1,9 @@
|
||||
/*
|
||||
thing // indent 2 == error
|
||||
|
||||
|
||||
add_10 :: (size: int): int // scope 0
|
||||
add_20 :: (new_size: int): int // up scope 2
|
||||
return 20 // up scope 2
|
||||
// down scope
|
||||
// down scope
|
||||
// scope 0
|
||||
thing
|
||||
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
add_10 :: (size: int): int
|
||||
add_20 :: (new_size: int): int
|
||||
return 20
|
||||
|
||||
result := size + 10
|
||||
constant :: 20; result := constant + 10
|
||||
return result
|
||||
|
||||
return_constant :: (): int
|
||||
|
||||
Reference in New Issue
Block a user