8000 remove inappropriate warning about App · applideveloper/scala.github.com@b8143fc · GitHub
[go: up one dir, main page]

Skip to content

Commit b8143fc

Browse files
committed
remove inappropriate warning about App
this isn't the place for it
1 parent 7038900 commit b8143fc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tutorials/tour/polymorphic-methods.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ Here is an example:
2727
}
2828

2929
Method `dup` in object `PolyTest` is parameterized with type `T` and with the value parameters `x: T` and `n: Int`. When method `dup` is called, the programmer provides the required parameters _(see line 8 in the program above)_, but as line 9 in the program above shows, the programmer is not required to give actual type parameters explicitly. The type system of Scala can infer such types. This is done by looking at the types of the given value parameters and at the context where the method is called.
30-
31-
Please note that the trait `App` is designed for writing short test programs, but should be avoided for production code (for Scala versions 2.8.x and earlier) as it may affect the ability of the JVM to optimize the resulting code; please use `def main()` instead.

0 commit comments

Comments
 (0)
0