-
-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Labels
bugSomething isn't workingSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it firstupstream
Description
<script setup lang="ts" generic="T extends { name: string }">
const props = defineProps<{
one: T;
all: Array<T>;
}>();
</script>
<template>
<div>
<!-- incorrect inference -->
<div>{{ one.name }}</div>
<!-- correct inference -->
<div>{{ props.one.name }}</div>
<ul>
<!-- correct inference -->
<li v-for="el in all">{{ el.name }}</li>
</ul>
</div>
</template>
flemeur, NikoGJ, scottbedard, robinpilz, ascott18 and 2 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it firstupstream