scalameta/metals

When a name like `res2` is used in a worksheet, it causes a double definition

开放

#5,680 创建于 2023年9月26日

 (3 条评论) (0 个反应) (0 位负责人)Scala (421 个派生)batch import
buggood first issueworksheets

仓库指标

星标
 (2,300 个星标)
PR 合并指标
 (平均合并 3天 11小时) (30 天内合并 122 个 PR)

描述

Describe the bug

  1. Open a worksheet
  2. Type a few lines of results to be evaluated.
  3. Define a value named val res2 = 1 to see error. res2

Expected behavior

Should evaluate OK.

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

v1.0.1

Extra context or search terms

worksheet, result, double definition, Mdoc

贡献者指南