File tree 2 files changed +18
-1
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -2130,7 +2130,7 @@ trait Applications extends Compatibility {
2130
2130
resultType.revealIgnored match {
2131
2131
case resultType : ValueType =>
2132
2132
altType.widen match {
2133
- case tp : PolyType => resultConforms(altSym, tp.resultType , resultType)
2133
+ case tp : PolyType => resultConforms(altSym, instantiateWithTypeVars(tp) , resultType)
2134
2134
case tp : MethodType =>
2135
2135
val wildRes = wildApprox(tp.resultType)
2136
2136
Original file line number Diff line number Diff line change
1
+ import java .util .concurrent .atomic .AtomicReference
2
+
3
+ object UnboundedHub :
4
+ final class Node [A ](var value : A , val pointer : AtomicReference [Pointer [A ]])
5
+ final case class Pointer [A ](node : Node [A ], subscribers : Int )
6
+
7
+ private final class UnboundedHub [A ]:
8
+ import UnboundedHub .*
9
+
10
+ val publisherHead : AtomicReference [Node [A ]] = new AtomicReference (
11
+ new Node [A ](
12
+ null .asInstanceOf [A ],
13
+ new AtomicReference (
14
+ Pointer (null , 0 ) // error: too many arguments for constructor AtomicReference
15
+ )
16
+ )
17
+ )
You can’t perform that action at this time.
0 commit comments