ceylon / ceylon-spec

DEPRECATED
Apache License 2.0
108 stars 34 forks source link

disallow constructor with same name as inherited member #1431

Closed gavinking closed 8 years ago

gavinking commented 8 years ago

As noted by @sgalles in #1366, the typechecker currently accepts this:

interface Bar{
    shared Integer foo() => nothing;
}

class Foo satisfies Bar{
    shared new (){}
    shared new foo(){}
}

But it blows up the backend, and anyway was never really intended.

gavinking commented 8 years ago

Done.