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
Post a Comment