ceylon/ceylon-spec — Issue #169: throw statements don't check the type of their argument
Author: FroMage
Created: 2012-02-09 09:16:41+00:00
State: open
Labels: bug, high priority

Apparently it's not legal to try to throw a `String`, yet the typechecker doesn't tell me:

```java
throw "foo";
```

For some reason I thought this was a shorthand for `throw new Exception("foo");` but it isn't, and the typechecker isn't telling me.