Fix in SpecifyTypeExplicitlyIntention

This commit is contained in:
Valentin Kipyatkov
2015-05-06 13:34:56 +03:00
parent 07a89b38e1
commit 709573db69
4 changed files with 24 additions and 0 deletions
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
// ERROR: Primary constructor call expected
class A(val x: Int) {
constructor(x: String)<caret>
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun foo(): Any {
return { (x: String<caret>) -> 42 }
}