eclipse-archived/ceylon

Unclear "error" message when type parameter satisfying alias

Opened this issue · 1 comments

xkr47 commented
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:

  • why it's wrong
  • what can be done
xkr47 commented

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