Guest User

Untitled

a guest
Jul 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. trait One
  2. trait Two
  3. interface Three
  4. interface Four
  5.  
  6. type UnionTraits is (One | Two)
  7. type IntersectTraits is (One & Two)
  8. type UnionTraitAndInterface is (One | Three)
  9. type IntersectTraitAndInterface is (Two & Four)
  10.  
  11. actor Main
  12. new create(env:Env) =>
  13. object is UnionTraits end // Assert
  14. object is IntersectTraits end // Assert
  15. object is UnionTraitAndInterface end // OK
  16. object is IntersectTraitAndInterface end // Assert
Add Comment
Please, Sign In to add comment