#2488 (Javascript) No warnings on func params

SlimerDude Tue 27 Oct 2015

I noticed this the other day:

@Js
class Example {	
    // WARNING: Type 'acme::JvmOnly' not available in Js
    JvmOnly?   test1() { null }

    // WARNING: Type 'acme::JvmOnly' not available in Js
    Void       test2(JvmOnly jvm) { }

    // No warning
    Void       test3(|JvmOnly| func) { }

    // No warning
    |JvmOnly|? test4() { null }
}

class JvmOnly {}

Generally, warnings are given for types not available in Javascript - but it doesn't seem work for func params.

andy Wed 28 Oct 2015

Ticket promoted to #2488 and assigned to andy

Login or Signup to reply.