Implicit function application crosses `;` / newline separators (f: {x + 1}; f[2] fails)

オープン
#8 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@tangentstorm がすでに取り組んでいます。

2026年10月29日 から。

  • #12 @tangentstorm による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
compilers

調査の方向性

Read imp-eval.mts around line 862 and run the reported semicolon-separated example, then check the equivalent newline-separated program. Done means both programs return 3 without treating the separator as an argument; note that linked PR #12 is already open.

索引モデルが issue の本文から書いたものです。

説明

approved follow-up

From the Codex whole-repo review on #5 (review comment).

Location: imp-eval.mts:862 on main (6813323)

[P1] Stop implicit function application at expression separators

When a function-valued expression is followed by another statement, this check treats the separator as the start of its arguments. For example, f: {x + 1}; f[2] throws expected a noun, got: ; instead of returning 3; the equivalent newline-separated program also fails. Assignment is normalized into a set[...] expression that returns the function, so this affects ordinary multi-statement programs defining functions, not just immediately applied anonymous functions. Check for a separator before attempting implicit application and leave function-valued statements unevaluated.

Checked 2026-10-29: still present on main; not touched by open PRs #3, #4 or #7.

主要言語
TypeScript
スター
6
フォーク
1
平均マージ
3分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tangentcode/implish のほかの issue

tangentcode/implish の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。