Skip to content

Commit fdceb55

Browse files
committed
dsl: add Type.IdenticalTo experimental API
1 parent ff2e115 commit fdceb55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dsl/dsl.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ type ExprType struct {
206206
Size int
207207
}
208208

209+
// IdenticalTo applies types.Identical(this, v.Type) operation.
210+
// See https://golang.org/pkg/go/types/#Identical function documentation.
211+
//
212+
// Experimental: this function is not part of the stable API.
213+
func (ExprType) IdenticalTo(v Var) bool { return boolResult }
214+
209215
// Underlying returns expression type underlying type.
210216
// See https://golang.org/pkg/go/types/#Type Underlying() method documentation.
211217
// Read https://golang.org/ref/spec#Types section to learn more about underlying types.

0 commit comments

Comments
 (0)