Skip to content

Commit 5da7102

Browse files
committed
comments
1 parent 1fcf506 commit 5da7102

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,7 @@ 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
996997
public static <A> SomeNType someNType(NType<A> nt, A val) {
997998
return new SomeNType() {
998999
@Override

0 commit comments

Comments
 (0)