Closed
Description
Currently, we write
abstract class A {
abstract f() : void;
}
Wouldn't it be nicer to write:
abstract class A {
abstract f : () => void;
}
That would syntactically go smoothly with type aliases:
type t = () => void;
abstract class A {
abstract f : t;
}
which currently (1.7.5) is disallowed. (See #6832).