Default implementation of toplevel function gives error
quintesse opened this issue · 2 comments
quintesse commented
The following code:
native void nf1() {
print("nf1");
}
shared void run() {
nf1();
}
results in "ReferenceError: nf1 is not defined" on JS. On the JVM, it compiles and outputs "nf1", it should do the same for JS.
chochos commented
native headers cannot provide their own default impls? So this should be an error? Why then does the JVM backend compile it just fine?