forked from JavaTX/JavaCompilerCore
12 lines
170 B
Plaintext
12 lines
170 B
Plaintext
|
class Twice2 {
|
||
|
id1inst = new Id<>();
|
||
|
id1 = id1inst.id;
|
||
|
id2inst = new Id<>();
|
||
|
id2 = id2inst.id;
|
||
|
twice = id1.apply(id2);
|
||
|
|
||
|
}
|
||
|
|
||
|
class Id<T> {
|
||
|
id = (T x) -> x;
|
||
|
}
|