Created
October 22, 2014 14:28
-
-
Save yutopp/39356f99326937898664 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): int | |
{ | |
val a: mutable(int) = 10; | |
val b = 20; | |
val c = f( a * b ); | |
p( c ); | |
return 0; | |
} | |
template(T: type) | |
def f(val a: T): T | |
{ | |
val v: mutable(T) = 150; | |
v = 10; | |
return a * v; | |
} | |
extern def mutable( val a :type ): type "rill_abababa"; | |
extern def p( val i :int ): void "put_string2"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment