We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5da7102 commit 1d22facCopy full SHA for 1d22fac
copy/entries/faking-adts-and-gadts.md
@@ -993,7 +993,8 @@ interface SomeNTypeVisitor<R> {
993
interface SomeNType {
994
public abstract <R> R accept(SomeNTypeVisitor<R> visitor);
995
996
- // use a factory method here, or a generic subclass would work too
+ // use a factory method here, or a generic subclass with NType<A> and A
997
+ // fields would work too
998
public static <A> SomeNType someNType(NType<A> nt, A val) {
999
return new SomeNType() {
1000
@Override
0 commit comments