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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -