-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
Signed-off-by: Denys Smirnov <denys@sourced.tech>
Signed-off-by: Denys Smirnov <denys@sourced.tech>
fixtures/u2_class_inherits.go
Outdated
package fixtures | ||
|
||
type Foo struct { | ||
Bar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having Bar
defined above would make the test more complete.
fixtures/u2_type_interface_extend.go
Outdated
package fixtures | ||
|
||
type Foo interface { | ||
Bar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
@@ -0,0 +1,7 @@ | |||
package fixtures | |||
|
|||
type Foo int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some inconsistency because in some test filenames the types are called u2_class
, but here are called u2_type
, is there a rationale for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I consider "classes" as something that can have fields, while "types" can only have methods attached. Probably it's wrong.
Signed-off-by: Denys Smirnov <denys@sourced.tech>
Not wrong, just an opinable matter, the important thing would be to use the same criteria for all languages with structural subtyping. |
Closing this one, it's superseded by #17 branched from this one. |
Signed-off-by: Denys Smirnov denys@sourced.tech