Skip to content

Commit 1976d9e

Browse files
omerfirmakdeadprogram
authored andcommitted
reflect: Chan related stubs
1 parent 87153e9 commit 1976d9e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/reflect/type.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,3 +529,7 @@ func FuncOf(in, out []Type, variadic bool) Type {
529529

530530
return toType(reflectlite.FuncOf(rawIn, rawOut, variadic))
531531
}
532+
533+
func ChanOf(dir ChanDir, t Type) Type {
534+
panic("unimplemented: reflect.ChanOf")
535+
}

src/reflect/value.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ func (v Value) Send(x Value) {
178178
panic("unimplemented: reflect.Value.Send()")
179179
}
180180

181+
func (v Value) TrySend(x Value) bool {
182+
panic("unimplemented: reflect.Value.TrySend()")
183+
}
184+
181185
func (v Value) Close() {
182186
panic("unimplemented: reflect.Value.Close()")
183187
}
@@ -217,6 +221,10 @@ func (v Value) Recv() (x Value, ok bool) {
217221
panic("unimplemented: (reflect.Value).Recv()")
218222
}
219223

224+
func (v Value) TryRecv() (x Value, ok bool) {
225+
panic("unimplemented: (reflect.Value).TryRecv()")
226+
}
227+
220228
func NewAt(typ Type, p unsafe.Pointer) Value {
221229
panic("unimplemented: reflect.New()")
222230
}

0 commit comments

Comments
 (0)