aboutsummaryrefslogtreecommitdiff
path: root/tests/run/inlinePower/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/inlinePower/Test_2.scala')
-rw-r--r--tests/run/inlinePower/Test_2.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/inlinePower/Test_2.scala b/tests/run/inlinePower/Test_2.scala
new file mode 100644
index 000000000..8e16587b5
--- /dev/null
+++ b/tests/run/inlinePower/Test_2.scala
@@ -0,0 +1,9 @@
+import p.pow.power
+object Test {
+
+ def main(args: Array[String]): Unit = {
+ println(power(2.0, 10))
+ def x = 2.0
+ println(power(x, 11))
+ }
+}