From 1efac924b7b3e94b76643c4a05b7f92f9552f03a Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Fri, 22 Apr 2022 17:18:24 +0200 Subject: [PATCH] reorganise construction of refined mirror types, record constraints against the formal. --- .../dotty/tools/dotc/typer/Synthesizer.scala | 36 ++++++--- tests/neg/7380a.scala | 29 ++++++++ tests/run-macros/i7987.check | 7 +- tests/run/i14150.scala | 74 +++++++++++++++++++ 4 files changed, 129 insertions(+), 17 deletions(-) create mode 100644 tests/neg/7380a.scala create mode 100644 tests/run/i14150.scala diff --git a/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala b/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala index 1267000d9733..d73c7cf90bfc 100644 --- a/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala @@ -240,11 +240,11 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context): * { * MirroredMonoType = * MirroredType = - * MirroredLabel =