Open aedeph opened 6 years ago
If Exception is a generic typed, then there is no way to satisfy ceylon doc about missing throws annotation:
class MyException() extends Exception() {} "doc" shared class Cls() { "doc" throws(`class MyException`) shared void thr() { throw MyException(); } }
$ ceylon doc $ # no warnings
class MyException<Element>() extends Exception() {} "doc" shared class Cls() { "doc" throws(`class MyException`) shared void thr() { throw MyException<Integer>(); } }
$ ceylon doc Warning: Missing throws annotation for MyException in documentation of method repl::Cls.thr(run.ceylon:14) $
If Exception is a generic typed, then there is no way to satisfy ceylon doc about missing throws annotation:
$ ceylon doc $ # no warnings
$ ceylon doc Warning: Missing throws annotation for MyException in documentation of method repl::Cls.thr(run.ceylon:14)
$