Make candidates lazy in ResolutionTask & ResolutionTaskHolder
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// KT-6153 java.lang.IllegalStateException while building
|
||||
object Bug {
|
||||
fun title(id:Int) = when (id) {
|
||||
0 -> "OK"
|
||||
else -> throw Exception("unsupported $id")
|
||||
}
|
||||
|
||||
private fun <T> T.header(id: Int) = StringBuilder().append(title(id))
|
||||
|
||||
fun run() = header(0)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Bug.run().toString()
|
||||
}
|
||||
Reference in New Issue
Block a user