diff --git a/compiler/compiler.go b/compiler/compiler.go index 15cdab9f..de3f69a1 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -869,14 +869,14 @@ func (c *compilerContext) createPackage(irbuilder llvm.Builder, pkg *ssa.Package if fn == nil { continue // probably a generic method } - if fn.Blocks == nil { - continue // external function - } if member.Type().String() != member.String() { // This is a member on a type alias. Do not build such a // function. continue } + if fn.Blocks == nil { + continue // external function + } if fn.Synthetic != "" && fn.Synthetic != "package initializer" { // This function is a kind of wrapper function (created by // the ssa package, not appearing in the source code) that