Skip to content

Unresolved reference #1879

@zolotov

Description

@zolotov
package main

type Type interface {
    Size() int64
}

type ArrayType struct {
    Type Type
}

func zeroArray(t *Type) {
    at, _ := (*t).(*ArrayType)
    println(at.Type) // shouldn't be a error
    println(at.Type.Size) // shouldn't be a error
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions