a7b88e9485
And String.length as well. This is done for JVM interoperability: java.lang.CharSequence is an open class and has a function 'length()' which should be implemented in subclasses somehow. A minor unexpected effect of this is that String.length() is now a compile-time constant (it wasn't such as a property because properties are not supported in compile-time constant evaluation) #KT-3571 Fixed
12 lines
616 B
Plaintext
Vendored
12 lines
616 B
Plaintext
Vendored
== test ==
|
|
fun test(s: IntProgression?) {
|
|
s?.start
|
|
}
|
|
---------------------
|
|
<v0>: {<: IntProgression?} NEW: magic[FAKE_INITIALIZER](s: IntProgression?) -> <v0>
|
|
s <v1>: {<: Progression<Int>?} NEW: r(s) -> <v1>
|
|
start <v2>: * NEW: r(start|<v1>) -> <v2>
|
|
s?.start <v2>: * COPY
|
|
{ s?.start } <v2>: * COPY
|
|
=====================
|