From fdf9858527abffddb2b691843b16f7227e313677 Mon Sep 17 00:00:00 2001 From: Nigel Warren Date: Tue, 30 Apr 2019 12:27:39 +0100 Subject: [PATCH] Update weak-conformance.md val d corresponds to type Double and val d used in construction of List --- docs/docs/reference/dropped-features/weak-conformance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference/dropped-features/weak-conformance.md b/docs/docs/reference/dropped-features/weak-conformance.md index aaa61adf415d..6e7f1fb9f61a 100644 --- a/docs/docs/reference/dropped-features/weak-conformance.md +++ b/docs/docs/reference/dropped-features/weak-conformance.md @@ -20,7 +20,7 @@ A less obvious example is the following one, which was also typed as a val n: Int = 3 val c: Char = 'X' - val n: Double = math.sqrt(3.0) + val d: Double = math.sqrt(3.0) List(n, c, d) // used to be: List[Double], now: List[AnyVal] Here, it is less clear why the type should be widened to