KT-1056 Don't allow passing type arguments to T

#KT-1056 Fixed
This commit is contained in:
Andrey Breslav
2014-11-04 10:22:13 +02:00
parent 35766dfa20
commit 8436147cec
5 changed files with 35 additions and 2 deletions
@@ -131,7 +131,10 @@ public class TypeResolver(
scopeForTypeParameter)
)
resolveTypeProjections(c, ErrorUtils.createErrorType("No type").getConstructor(), type.getTypeArguments())
val arguments = resolveTypeProjections(c, ErrorUtils.createErrorType("No type").getConstructor(), type.getTypeArguments())
if (!arguments.isEmpty()) {
c.trace.report(WRONG_NUMBER_OF_TYPE_ARGUMENTS.on(type.getTypeArgumentList(), 0))
}
val containing = classifierDescriptor.getContainingDeclaration()
if (containing is ClassDescriptor) {