java - Kotlin Back-Tick escaping in method names: How does it work? -


i found out, in kotlin it's possible name method this:

 fun `i test method`(){     assert.assertequals("x", "x")  } 

the compiler generates method underscores instead of blanks: "i_am_a_test_method", seems reasonable jvm not permit methods blanks afaik. how can junit and/or gradle report these tests back-ticked name though?

in java method descriptor, several characters have special meaning, namely [ ( ) / , ;. space doesn't have special meaning, , therefore can used directly in method name; that's compiler does. spaces not converted underscores.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -