File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
compiler/src/dotty/tools/scripting Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ object Main:
7878 writer.close()
7979 end writeJarfile
8080
81- def pathsep : String = sys.props(" path.separator" ).nn
81+ def pathsep : String = sys.props(" path.separator" )
8282
8383 extension(path : String ) {
8484 // Normalize path separator, convert relative path to absolute
@@ -102,4 +102,4 @@ object Main:
102102 def secondChar : String = path.take(2 ).drop(1 ).mkString(" " )
103103 }
104104
105- lazy val userDir : String = sys.props(" user.dir" ).nn. norm
105+ lazy val userDir : String = sys.props(" user.dir" ).norm
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ object Util:
5656 end match
5757 end detectMainClassAndMethod
5858
59- def pathsep : String = sys.props(" path.separator" ).nn
59+ def pathsep : String = sys.props(" path.separator" )
6060
6161end Util
6262
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ trait Selectable extends scala.Selectable:
2323 final def selectDynamic (name : String ): Any =
2424 val rcls = selectedValue.getClass
2525 try
26- val fld = rcls.getField(NameTransformer .encode(name)).nn
26+ val fld = rcls.getField(NameTransformer .encode(name))
2727 ensureAccessible(fld)
2828 fld.get(selectedValue)
2929 catch case ex : NoSuchFieldException =>
@@ -37,7 +37,7 @@ trait Selectable extends scala.Selectable:
3737 */
3838 final def applyDynamic (name : String , paramTypes : Class [? ]* )(args : Any * ): Any =
3939 val rcls = selectedValue.getClass
40- val mth = rcls.getMethod(NameTransformer .encode(name), paramTypes* ).nn
40+ val mth = rcls.getMethod(NameTransformer .encode(name), paramTypes* )
4141 ensureAccessible(mth)
4242 mth.invoke(selectedValue, args.asInstanceOf [Seq [AnyRef ]]* )
4343
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ object FromDigits {
154154 case ex : NumberFormatException => throw MalformedNumber ()
155155 }
156156 if (x.isInfinite) throw NumberTooLarge ()
157- if (x == 0.0d && ! zeroFloat.pattern.matcher(digits).nn. matches) throw NumberTooSmall ()
157+ if (x == 0.0d && ! zeroFloat.pattern.matcher(digits).matches) throw NumberTooSmall ()
158158 x
159159 }
160160
You can’t perform that action at this time.
0 commit comments