Skip to content

Types don't colorize at declaration #1603

@cartermp

Description

@cartermp
  1. Install latest master of F# and Roslyn in a single hive.
  2. Create a Console App.
  3. Enter the following:
// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.

type BST<'T> =
    | Empty
    | Node of 'T * BST<'T> * BST<'T>

let rec flip (tree: BST<'T>) =
    match tree with
    | Empty -> tree
    | Node(x, left, right) -> Node(x, flip right, flip left)

[<EntryPoint>]
let main argv = 
    printfn "%A" argv
    0 // return an integer exit code

Note that BST<'T> isn't colorized at the first declaration, but is colorized in subsequent uses.

fs-roslyn-no-color-first-declar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-APIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions