blob: 0f0a2ff97687efcc27a9ed81213dc9d9dd099a26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// "Change 'foo' function return type to '(x: [ERROR : NoSuchType]) -> Int'" "false"
// ACTION: Convert to multi-line lambda
// ACTION: Create annotation 'NoSuchType'
// ACTION: Create class 'NoSuchType'
// ACTION: Create enum 'NoSuchType'
// ACTION: Create interface 'NoSuchType'
// ACTION: Enable a trailing comma by default in the formatter
// ACTION: Remove explicit lambda parameter types (may break code)
// ACTION: Create type parameter 'NoSuchType' in function 'foo'
// ERROR: Type mismatch: inferred type is ([Error type: Unresolved type for NoSuchType]) -> Int but Int was expected
// ERROR: Unresolved reference: NoSuchType
fun foo(): Int {
return { x: NoSuchType<caret> -> 42 }
}
|