New Issue: internal error when defining a secondary initializer on missing type

17323, "mppf", "internal error when defining a secondary initializer on missing type", "2021-03-03T13:08:16Z"

Summary of Problem

We see an internal error with the below code but it should rather be a user-facing one.

Steps to Reproduce

Source Code:

proc R.init(arg: int) { } // internal error
//proc R.foo() { }  error: 'R' undeclared (first use this function)
$ chpl bb.chpl 
bb.chpl:1: internal error: 'this' argument has unknown type [passes/normalize.cpp:4473]

Associated Future Test(s):

none yet