- Fix code generation for inlined String::plus

#KT-10131 Fixed.
- Make extra factory methods in IntrinsicMethod protected.
This ensures that any of them can be properly overridden.
This commit is contained in:
Dmitry Petrov
2015-11-23 15:16:08 +03:00
parent 2b4868c3ce
commit 931463af0d
5 changed files with 49 additions and 14 deletions
@@ -0,0 +1,2 @@
fun box(): String =
listOf('O', 'K').fold("", String::plus)
@@ -0,0 +1,2 @@
fun box(): String =
charArrayOf('O', 'K').fold("", String::plus)