---
title: "TS8074 REFERENCE_ALIAS: TypeShade 컴파일러가 진단에 붙이는 오류 코드 한 가지"
description: "TS8074 REFERENCE_ALIAS, TypeShade 컴파일러의 오류 코드입니다. 한 호출에서 한 객체에 이름이 둘이고, 그중 하나에 쓰기가 닿습니다."
url: https://typeshade.dev/ko/reference/errors/ts8074/
language: ko
---

# `TS8074`

프런트엔드 코드 `REFERENCE_ALIAS`

한 호출에서 한 객체에 이름이 둘이고, 그중 하나에 쓰기가 닿습니다. 둘 중 하나를 쓰는 `f`에 `f(a, a)`를 넘기거나, 이름을 직접 쓰는 함수에 모듈 변수를 넘기는 경우입니다. 메시지는 이 형태를 아직 지원하지 않는다고 말합니다(변경 0142).

레지스트리에는 이 상수에 대한 문서 주석이 없습니다. 그래서 위 설명은 컴파일러가 이 코드와 함께 내는 메시지를 보고 이 사이트가 쓴 것입니다.

이 커밋에는 아직 이 코드의 예제가 없습니다.

레지스트리 설명과 컴파일러 메시지는 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.

## 이 코드가 적용하는 규칙

**[규칙 8.25](https://typeshade.dev/ko/reference/rules/8-25/) 테스트**

An object parameter that its function writes is the caller’s object, and the call passes the variable itself, unmarked: reading the parameter reads that object, and assigning to a field or an element of it writes it, for the call (change 0142).

## 함께 보기

- [오류 코드](https://typeshade.dev/ko/reference/errors/)

## 소스

커밋 af54ddad5에서 컴파일러가 이 코드를 내는 곳입니다. 파일마다 한 줄씩 적었습니다.

- [`src/compiler/ts/lower/function.ts:2235`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/compiler/ts/lower/function.ts#L2235)
- [`src/compiler/ts/lower/references.ts:281`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/compiler/ts/lower/references.ts#L281)
