Create From Usage: Add support of star projections/incorrect type arguments

#EA-62661 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-10 14:22:59 +03:00
parent ab5a691612
commit f0b0fd07c5
11 changed files with 67 additions and 10 deletions
@@ -0,0 +1,7 @@
// "Create class 'Foo'" "true"
fun test() = Foo<String>(2, "2")
class Foo<T>(i: Int, t: T) {
}
@@ -0,0 +1,3 @@
// "Create class 'Foo'" "true"
fun test() = <caret>Foo<String, *>(2, "2")
@@ -0,0 +1,8 @@
// "Create class 'A'" "true"
package p
fun foo(): A<*, String> = throw Throwable("")
class A<T, U> {
}
@@ -0,0 +1,4 @@
// "Create class 'A'" "true"
package p
fun foo(): <caret>A<*, String> = throw Throwable("")