Fixed method hasTypeParameterListBeforeFunctionName in JetNamedFunction
This commit is contained in:
@@ -63,7 +63,7 @@ public class JetNamedFunction extends JetTypeParameterListOwnerStub<KotlinFuncti
|
|||||||
}
|
}
|
||||||
PsiElement nameIdentifier = getNameIdentifier();
|
PsiElement nameIdentifier = getNameIdentifier();
|
||||||
if (nameIdentifier == null) {
|
if (nameIdentifier == null) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
return nameIdentifier.getTextOffset() > typeParameterList.getTextOffset();
|
return nameIdentifier.getTextOffset() > typeParameterList.getTextOffset();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ trait A
|
|||||||
fun devNull(a: Any?){}
|
fun devNull(a: Any?){}
|
||||||
|
|
||||||
val generic_fun = fun<!TYPE_PARAMETERS_NOT_ALLOWED!><T><!>(t: T): T = null!!
|
val generic_fun = fun<!TYPE_PARAMETERS_NOT_ALLOWED!><T><!>(t: T): T = null!!
|
||||||
val extension_generic_fun = fun<!TYPE_PARAMETERS_NOT_ALLOWED!><T><!><!UNRESOLVED_REFERENCE!>T<!>.(t: T): T = null!!
|
val extension_generic_fun = fun<!TYPE_PARAMETERS_NOT_ALLOWED!><T><!>T.(t: T): T = null!!
|
||||||
|
|
||||||
fun fun_with_where() = fun <!TYPE_PARAMETERS_NOT_ALLOWED!><T><!> <!UNRESOLVED_REFERENCE!>T<!>.(t: T): T where T: A {<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
|
fun fun_with_where() = fun <!TYPE_PARAMETERS_NOT_ALLOWED!><T><!> T.(t: T): T where T: A = null!!
|
||||||
|
|
||||||
|
|
||||||
fun outer() {
|
fun outer() {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package
|
package
|
||||||
|
|
||||||
internal val extension_generic_fun: [ERROR : T].(T) -> T
|
internal val extension_generic_fun: T.(T) -> T
|
||||||
internal val generic_fun: (T) -> T
|
internal val generic_fun: (T) -> T
|
||||||
internal fun devNull(/*0*/ a: kotlin.Any?): kotlin.Unit
|
internal fun devNull(/*0*/ a: kotlin.Any?): kotlin.Unit
|
||||||
internal fun fun_with_where(): [ERROR : T].(T) -> T
|
internal fun fun_with_where(): T.(T) -> T
|
||||||
internal fun outer(): kotlin.Unit
|
internal fun outer(): kotlin.Unit
|
||||||
|
|
||||||
internal trait A {
|
internal trait A {
|
||||||
|
|||||||
Reference in New Issue
Block a user