@@ -116,8 +116,8 @@ trait TreeDSL {
116116 * See ticket #2168 for one illustration of AS vs. AS_ANY.
117117 */
118118 def AS (tpe : Type ) = gen.mkAsInstanceOf(target, tpe, any = true , wrapInApply = false )
119- def IS (tpe : Type ) = gen.mkIsInstanceOf(target, tpe, true )
120- def IS_OBJ (tpe : Type ) = gen.mkIsInstanceOf(target, tpe, false )
119+ def IS (tpe : Type ) = gen.mkIsInstanceOf(target, tpe, any = true )
120+ def IS_OBJ (tpe : Type ) = gen.mkIsInstanceOf(target, tpe, any = false )
121121
122122 def TOSTRING () = fn(target, nme.toString_)
123123 def GETCLASS () = fn(target, Object_getClass )
@@ -251,7 +251,7 @@ trait TreeDSL {
251251 def TRY (tree : Tree ) = new TryStart (tree, Nil , EmptyTree )
252252 def BLOCK (xs : Tree * ) = Block (xs.init.toList, xs.last)
253253 def NOT (tree : Tree ) = Select (tree, Boolean_not )
254- def SOME (xs : Tree * ) = Apply (SomeClass .companionSymbol, makeTupleTerm(xs.toList, true ))
254+ def SOME (xs : Tree * ) = Apply (SomeClass .companionSymbol, makeTupleTerm(xs.toList, flattenUnary = true ))
255255
256256 /** Typed trees from symbols. */
257257 def THIS (sym : Symbol ) = gen.mkAttributedThis(sym)
0 commit comments