github.com/nevalang/neva@v0.23.1-0.20240507185603-7696a9bb8dda/internal/compiler/parser/smoke_test/happypath/020_interface.union.neva (about) 1 interface { IReader1 (a bool | int) () } 2 3 interface { 4 IReader1 (a bool | int) () 5 } 6 7 interface { 8 IReader1 () (x string | float) 9 } 10 11 interface { 12 IReader1 (a bool | int) (x string | float) 13 } 14 15 interface { 16 IReader1 (a bool | int | struct {}) (x string | float | enum { Monday }) 17 } 18 19 interface { 20 IReader1 ( 21 a bool | int | struct { foo int | string } 22 ) ( 23 x string | 24 float | 25 enum { Monday } | 26 struct { 27 foo enum { January } | struct {} 28 } 29 ) 30 } 31 32 interface { 33 pub IReader1 ( 34 a bool | int | struct { foo int | string }, 35 b struct { bar int } 36 ) ( 37 x string | 38 float | 39 enum { Monday } | 40 struct { 41 foo enum { January } | struct {} 42 } 43 ) 44 }