[FIR] Add NOTHING_TO_INLINE diagnostic
This commit is contained in:
committed by
teamcityserver
parent
28344c8530
commit
015c2d1875
@@ -1,33 +0,0 @@
|
||||
fun find2(): Any? {
|
||||
fun visit(element: Any) {
|
||||
<!RETURN_NOT_ALLOWED!>return@find2<!> element
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
// For find(): AssertionError at ControlFlowInstructionsGeneratorWorker.getExitPoint()
|
||||
|
||||
fun find(): Any? {
|
||||
object : Any() {
|
||||
fun visit(element: Any) {
|
||||
<!RETURN_NOT_ALLOWED!>return@find<!> element
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
fun find4(): Any? {
|
||||
<!NOT_YET_SUPPORTED_IN_INLINE!>inline<!> fun visit(element: Any) {
|
||||
<!RETURN_NOT_ALLOWED!>return@find4<!> element
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
fun find3(): Any? {
|
||||
object : Any() {
|
||||
inline fun visit(element: Any) {
|
||||
<!RETURN_NOT_ALLOWED!>return@find3<!> element
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun find2(): Any? {
|
||||
fun visit(element: Any) {
|
||||
<!RETURN_NOT_ALLOWED!>return@find2<!> element
|
||||
|
||||
Reference in New Issue
Block a user