Menu

#170 simple GADT crashes type system

open
nobody
None
5
2006-05-08
2006-05-08
Rohan Hart
No

Nice compiler version 0.9.12 prerelease (build
2005.10.24, 05:01:51 UTC)

crashes on the code:

package gadt;

interface Term<T> {
T value();
}

class Less implements Term<boolean> {
Term<int> a;
Term<int> b;
value() = a.value < b.value;
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB