Advertisement
Guest User

Untitled

a guest
Feb 1st, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.26 KB | None | 0 0
  1. abstract type Foo end
  2.  
  3. struct Bar
  4.       foo::Foo
  5. end
  6.  
  7. struct FooBar <: Bar
  8. end
  9.  
  10. ERROR: invalid subtyping in definition of FooBar
  11. Stacktrace:
  12.  [1] macro expansion at ./REPL.jl:97 [inlined]
  13.  [2] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement