mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-24 18:25:32 +00:00
samples: add Terra samples
source: https://github.com/zdevito/terra/tree/master/tests
This commit is contained in:
18
samples/Terra/decltwice.t
Normal file
18
samples/Terra/decltwice.t
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
terra mything
|
||||
|
||||
terra mybar()
|
||||
return mything(4)
|
||||
end
|
||||
|
||||
terra mything(a : int)
|
||||
return a
|
||||
end
|
||||
|
||||
terra mything
|
||||
|
||||
terra mybar2()
|
||||
return mything(4)
|
||||
end
|
||||
|
||||
assert(mybar() == mybar2())
|
||||
Reference in New Issue
Block a user