We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d10419 commit b0268c3Copy full SHA for b0268c3
samples/snippets/fsharp/compiler-messages/fs0067.fsx
@@ -5,7 +5,7 @@ type Dog() =
5
let dog = Dog()
6
7
if dog :? Dog then
8
- printfn "It always be a dog"
+ printfn "It's of type: %s" dog.Name
9
10
(* Redundant Downcast *)
11
type Cat(name: string) =
@@ -15,4 +15,4 @@ let cat = Cat("Kitten")
15
16
let sameCat = cat :?> Cat
17
18
-printfn "It's still a %s" sameCat.Name
+printfn "It still a %s" sameCat.Name
0 commit comments