Implement Abstract Member Intention: Support primary constructor parameters

#KT-8427 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-24 17:13:53 +03:00
committed by Alexey
parent 2b4f03feef
commit aeefdffaab
34 changed files with 389 additions and 55 deletions

View File

@@ -0,0 +1,20 @@
package source;
abstract class X<S> implements T<S> {
}
class Y implements T<String> {
}
class Z implements T<Boolean> {
@Override
public Boolean getFoo() {
return null;
}
}
interface U extends T<Object> {
}

View File

@@ -0,0 +1,5 @@
package source
interface T<X> {
val foo: X
}

View File

@@ -0,0 +1,20 @@
package source;
abstract class X<S> implements T<S> {
}
class Y implements T<String> {
}
class Z implements T<Boolean> {
@Override
public Boolean getFoo() {
return null;
}
}
interface U extends T<Object> {
}

View File

@@ -0,0 +1,5 @@
package source
interface T<X> {
val <caret>foo: X
}

View File

@@ -0,0 +1,6 @@
{
"mainFile": "source/test.kt",
"intentionClass": "org.jetbrains.kotlin.idea.intentions.ImplementAbstractMemberAsConstructorParameterIntention",
"isApplicable": "false",
"withRuntime": "true"
}