File tree 2 files changed +2
-18
lines changed
2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 1
- -- [E195] Potential Issue Warning: tests/neg/i13044.scala:26:8 ---------------------------------------------------------
2
- 26 | new Schema[A] {
3
- | ^
4
- | New anonymous class definition will be duplicated at each inline site
5
- |
6
- | longer explanation available when compiling with `-explain`
7
- -- [E195] Potential Issue Warning: tests/neg/i13044.scala:32:8 ---------------------------------------------------------
8
- 32 | new Schema[A] {
9
- | ^
10
- | New anonymous class definition will be duplicated at each inline site
11
- |
12
- | longer explanation available when compiling with `-explain`
13
1
-- Error: tests/neg/i13044.scala:65:40 ---------------------------------------------------------------------------------
14
2
65 | implicit def typeSchema: Schema[A] = Schema.gen // error // error
15
3
| ^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -23,15 +23,11 @@ trait SchemaDerivation {
23
23
inline summonInline[Mirror .Of [A ]] match {
24
24
case m : Mirror .SumOf [A ] =>
25
25
lazy val subTypes = recurse[m.MirroredElemTypes ]
26
- new Schema [A ] {
27
- def build : A = ???
28
- }
26
+ ???
29
27
30
28
case m : Mirror .ProductOf [A ] =>
31
29
lazy val fields = recurse[m.MirroredElemTypes ]
32
- new Schema [A ] {
33
- def build : A = ???
34
- }
30
+ ???
35
31
}
36
32
37
33
inline given gen [A ]: Schema [A ] = derived
You can’t perform that action at this time.
0 commit comments