TypeChecker assumes invalid decl has valid type. https://bugs.swift.org/browse/SR-8475 rdar://problem/43057057