Throw when layer(…)
in @import
is in the incorrect spot
#15109
+82
−49
Merged