Skip to content

Instantly share code, notes, and snippets.

@lucaswerkmeister
Created April 17, 2017 11:41
Show Gist options
  • Save lucaswerkmeister/d7567baf4616874619392cfe9830767e to your computer and use it in GitHub Desktop.
Save lucaswerkmeister/d7567baf4616874619392cfe9830767e to your computer and use it in GitHub Desktop.
shared T f<T>(T t){
return t;
}
package tmp2;
import tmp2.f_;
import ceylon.language.Integer;
public class G {
public static void g() {
System.out.println(f_.f(Integer.$TypeDescriptor$, Integer.instance(1)));
}
}
native ("jvm") module tmp2 "1.0.0" {
import java.base "7";
}
shared void run() => G.g();
@lucaswerkmeister
Copy link
Author

(In case it’s not clear, these should all go in $projectRoot/source/tmp2/, and then you can ceylon compile,run tmp2 from $projectRoot.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment