Would it be possible, to make the `Class::function...
# language-proposals
g
Would it be possible, to make the
Class::function.name
literal a compile-time-constant? This would really help in situations where a name for an annotation is actual a function-name like in JUnit-Parameterized-Tests:
Copy code
object CalculatorTest {
    @ParameterizedTest
//  @MethodSource(value = CalculatorTest::multiplyNumberProvider.name) // HERE IT WOULD HELP
    @MethodSource(value = "multiplyNumberProvider") // this sucks
    fun `multiplication of two numbers (with params)`(num1: Int, num2: Int, expected: Int) {
       ...
    }
    fun multiplyNumberProvider(): Stream<Arguments> = ...
}
g
thx