Skip to content

Instantly share code, notes, and snippets.

@deanwampler
Last active June 29, 2023 22:18
Show Gist options
  • Save deanwampler/8199468e8275a45f8d65f24aa547b238 to your computer and use it in GitHub Desktop.
Save deanwampler/8199468e8275a45f8d65f24aa547b238 to your computer and use it in GitHub Desktop.
val t1: T1 = new T1 {}
val t2: T2 = new T2 {}
val t3: T3 = new T3 {}
val t123a: T1 | T2 | T3 = t1
val t123b: T1 | T2 | T3 = t2
val t123c: T1 | T2 | T3 = t3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment