Supported inline of array convention simple cases; Fix for KT-9211: M13 an extension function that is inline, and for get(v) causes an exception when called using brackets
#KT-9211 Fixed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
var res = 1
|
||||
|
||||
class A {
|
||||
|
||||
inline operator fun Int.get(z: Int, p: () -> Int, defaultt: Int = 100) = this + z + p() + defaultt
|
||||
|
||||
inline operator fun Int.set(z: Int, p: () -> Int, l: Int/*, x : Int = 1000*/) {
|
||||
res = this + z + p() + l /*+ x*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user