syntax icon indicating copy to clipboard operation
syntax copied to clipboard

Provide good error message when the type is capitalized

Open chenglou opened this issue 4 years ago • 2 comments

Hot newcomer path probably.

chenglou avatar Aug 28 '20 12:08 chenglou

type something = {
  types: array<SuperType>
}

IwanKaramazow avatar Sep 11 '20 05:09 IwanKaramazow

@chenglou yeah, it tripped me up almost immediately starting out with rescript. The Did you forget a `.` here? message is quite misleading. It seems that message shows up in a bunch of cases where it isn't very helpful to newcomers.

evelant avatar Feb 10 '22 13:02 evelant

The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.

stale[bot] avatar May 28 '23 19:05 stale[bot]