Skip to content

Commit 1d22fac

Browse files
committed
more comment
1 parent 5da7102 commit 1d22fac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

copy/entries/faking-adts-and-gadts.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,8 @@ interface SomeNTypeVisitor<R> {
993993
interface SomeNType {
994994
public abstract <R> R accept(SomeNTypeVisitor<R> visitor);
995995

996-
// use a factory method here, or a generic subclass would work too
996+
// use a factory method here, or a generic subclass with NType<A> and A
997+
// fields would work too
997998
public static <A> SomeNType someNType(NType<A> nt, A val) {
998999
return new SomeNType() {
9991000
@Override

0 commit comments

Comments
 (0)