retronym commented on pull request #28463:
URL: https://github.com/apache/spark/pull/28463#issuecomment-625185257


   > Maybe tweaking `ReplSuite` a bit can make it happen.
   
   Alternatively, you can dynamically change (most) compiler settings in the 
REPL.
   
   ```
   scala> :settings -Ydelambdafy:inline
   
   scala> class CInline { def test = () => 42 }
   class CInline
   
   scala> :javap -c CInline#test
     public scala.Function0<java.lang.Object> test();
       Code:
          0: new           #13                 // class 
$line6/$read$$iw$CInline$$anonfun$test$1
          3: dup
          4: aload_0
          5: invokespecial #22                 // Method 
$line6/$read$$iw$CInline$$anonfun$test$1."<init>":(L$line6/$read$$iw$CInline;)V
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to