Skip to content

Reproduce #933 #959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion analysis/tests/bsconfig.json
Original file line number Diff line number Diff line change
@@ -11,5 +11,5 @@
],
"bsc-flags": ["-w -33-44-8"],
"bs-dependencies": ["@rescript/react"],
"jsx": { "version": 3 }
"jsx": { "version": 4 }
}
26 changes: 20 additions & 6 deletions analysis/tests/src/Highlight.res
Original file line number Diff line number Diff line change
@@ -38,9 +38,7 @@ module type MT = {
}

module DDF: MT = {
module DDF = {

}
module DDF = {}
}

module XX = {
@@ -69,9 +67,12 @@ let foo = x => x.T.someField

let add = (~hello as x, ~world) => x + world

let _ = @res.partial add(~hello=3)
let _ = add(~hello=3, ...)

let _ = <div scale="abc"> <div /> </div>
let _ =
<div scale="abc">
<div />
</div>

module SomeComponent = {
module Nested = {
@@ -82,7 +83,10 @@ module SomeComponent = {
}
}

let _ = <SomeComponent.Nested> <div /> </SomeComponent.Nested>
let _ =
<SomeComponent.Nested>
<div />
</SomeComponent.Nested>

// true/false
let _ = true || false
@@ -134,3 +138,13 @@ let _ = (~_type_ as _) => ()
let _ = {"abc": 34}

let _ = {"Key": 2}

module Test = {
let fn = (~arg as _) => ()

@react.component
let make = (~prop as _) => {
fn(~arg=())
<div />
}
}