New Issue: use statement does not find renamed import

19799, "mppf", "use statement does not find renamed import", "2022-05-12T14:30:23Z"

I was expecting the following program to compile and run, because the use B brings in something named CC which actually refers to C; so use CC should work. However it does not.

module A {
  use B;
  use CC;

  var x = cvar;

  proc main() {
    writeln(x);
  }
}

module B {
  public import C as CC;
}

module C {
  var cvar: int = 1;
}
cc.chpl:3: error: Cannot find module or enum 'CC'