Created
October 23, 2014 05:38
-
-
Save yutopp/15d7257efd4fbbab6393 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 klass1 = mutable(TestClass)(); | |
// val klass1 = TestClass(); | |
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"; | |
class TestClass | |
{ | |
def this(): void | |
{ | |
} | |
} | |
class HogeHuga | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment