Skip to content

Instantly share code, notes, and snippets.

@yutopp
Created October 23, 2014 05:38
Show Gist options
  • Save yutopp/15d7257efd4fbbab6393 to your computer and use it in GitHub Desktop.
Save yutopp/15d7257efd4fbbab6393 to your computer and use it in GitHub Desktop.
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