ceylon / ceylon-compiler

DEPRECATED
GNU General Public License v2.0
138 stars 36 forks source link

Type-safe Metamodel example fails #2398

Closed ghost closed 8 years ago

ghost commented 8 years ago

Using 1.2 zip-distro pasted on gitter today...

I took the metamodel example from http://trybeta.ceylon-lang.org/ and wrapped it in a function. Compiled fine, but at runtime I get:

ceylon.language::List.Element ceylon run: Too many type arguments provided: 1, but only accepts 0 ceylon.language.meta.model.TypeApplicationException "Too many type arguments provided: 1, but only accepts 0" at com.redhat.ceylon.compiler.java.runtime.metamodel.Metamodel.checkTypeArguments(Metamodel.java:1570)

FroMage commented 8 years ago

Turns out the sample was invalid ;)