mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed atom deletion issue
This commit is contained in:
parent
2130b7d60c
commit
27a586df04
9 changed files with 133 additions and 18 deletions
5
IDE/Tests/BugW006/BeefProj.toml
Normal file
5
IDE/Tests/BugW006/BeefProj.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
FileVersion = 1
|
||||
|
||||
[Project]
|
||||
Name = "Bug"
|
||||
StartupObject = "Bug.Program"
|
6
IDE/Tests/BugW006/BeefSpace.toml
Normal file
6
IDE/Tests/BugW006/BeefSpace.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
FileVersion = 1
|
||||
Projects = {Bug = {Path = "."}}
|
||||
|
||||
[Workspace]
|
||||
StartupProject = "Bug"
|
||||
|
25
IDE/Tests/BugW006/scripts/Test.txt
Normal file
25
IDE/Tests/BugW006/scripts/Test.txt
Normal file
|
@ -0,0 +1,25 @@
|
|||
# This tests that types that fail generic tests don't create types referenced in methods
|
||||
# and also that they get deleted immediately when they are dereferenced.
|
||||
|
||||
ShowFile("src/Program.bf")
|
||||
|
||||
GotoText("//Test_Y")
|
||||
AdjustCursor(16, 1)
|
||||
InsertText(" abc")
|
||||
Sleep(500)
|
||||
InsertText(", in")
|
||||
Sleep(500)
|
||||
InsertText("t def")
|
||||
|
||||
Compile()
|
||||
|
||||
DeleteTextBackward(5)
|
||||
Sleep(500)
|
||||
DeleteTextBackward(4)
|
||||
Sleep(500)
|
||||
DeleteTextBackward(4)
|
||||
Sleep(500)
|
||||
ToggleCommentAt("Test_Definition")
|
||||
|
||||
Sleep(500)
|
||||
Compile()
|
25
IDE/Tests/BugW006/src/Program.bf
Normal file
25
IDE/Tests/BugW006/src/Program.bf
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace Bug
|
||||
{
|
||||
class Program
|
||||
{
|
||||
//*Test_Definition
|
||||
public class Test<T, K> where K: enum
|
||||
{
|
||||
typealias x = function void (T t);
|
||||
//Test_Y
|
||||
typealias y = (K);
|
||||
}
|
||||
/*@*/
|
||||
|
||||
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue