Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Cursive issue 3099 manual reproduction

Manual test project for cursive-ide/cursive#3099, concerning inferred argument types in classic Java constructor calls.

Check

  1. Open this directory, or its deps.edn, as a project in the Cursive development IDE.
  2. Wait for project import and indexing to finish.
  3. Open src/clojure/repro/core.clj.
  4. Ensure the Java interop inspection is enabled.
  5. Inspect the constructor calls in that file.

Expected result

These functions should have no Java interop warning:

  • classic-constructor
  • new-special-form
  • explicitly-hinted
  • literal-control
  • annotated-function-control

genuinely-ambiguous-control should report a constructor-overload warning. This confirms that the inspection is active while the inferred and explicitly typed cases are resolved correctly.

For an additional check, use Expression Type on (str ...) in classic-constructor; it should report java.lang.String/String.

About

Repro cases for cursive-ide/cursive#3099

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages