eclipse-archived / ceylon

The Ceylon compiler, language module, and command line tools
http://ceylon-lang.org
Apache License 2.0
395 stars 62 forks source link

Unclear "error" message when type parameter satisfying alias #7404

Open xkr47 opened 5 years ago

xkr47 commented 5 years ago
alias Foo => String|Integer;
void foo<T>(T t) given T satisfies Foo {}

.. gives the "error" for Foo on line 2:

Satisfies a type alias: 'Foo'

This is unclear and does not tell:

xkr47 commented 5 years ago

Also, it wouid be handy if it actually wasn't an error :)