cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.31k stars 71 forks source link

typegen not adding map type? #972

Open rcoreilly opened 3 weeks ago

rcoreilly commented 3 weeks ago

Describe the bug

this did not get the Registers Type added:

// Registers is a list of named strings
//
//types:add
type Registers map[string]string // types:add <- tried here tooo

getting complaints about calling FuncButton methods on this b/c receiver type not registered.

How to reproduce

run latest cogentcode.

Example code

No response

Relevant output

No response

Platform

macOS